local unitDefs = {

C_MAMMOTHTANK = {
  name                = "Mammoth Tank",
  description         = "Very Heavy Siege Tank",
  
  objectName          = "c_mammothtank.obj",
  script              = "c_mammothtank.lua",
  buildPic            = "c_mammothtank.png",
  iconType            = "vehicle",  
  category            = [[LAND TANK WEAPON]],  --LEVEL2 NOTAIR
  TEDClass            = "TANK", 
  movementClass       = "TANK4",
  
  -- Cost
  buildCostMetal      = 900,  
  buildCostEnergy     = 0,
  buildTime           = 9000,
  mass                = 1000,
  power               = 900,

  -- Damage
  maxDamage           = 6600,  --6600 / 900 = 7.33
  idleAutoHeal        = 5,
  idleTime            = 900,  

  -- Flanking Bonus
  flankingBonusMode   = 3,
  flankingBonusDir    = [[0 0 1]],
  flankingBonusMin    = 0.7,
  flankingBonusMax    = 1.3,	 

  -- Collision Volume
  modelCenterOffset   = [[0.00 7.22 0.00]],  --all units using the model must have this
  
  -- Movement and Pathfinding
  footprintX          = 4,
  footprintZ          = 4,  
  maxVelocity         = 1.1,
  acceleration        = 0.01,
  brakeRate           = 0.001,
  turnRate            = 150,
  turnInPlace         = true,  
  maxSlope            = 20,
  maxWaterDepth       = 20,

  -- Tracks
  leaveTracks         = true,  
  trackOffset         = 3,
  trackStrength       = 6,
  trackStretch        = 1,
  trackType           = "StdTank",
  trackWidth          = 24,

  -- Abilities
  canMove             = true,  
  canAttack           = true,
  canGuard            = true,
  canPatrol           = true,

  -- Detection  
  sightDistance       = 530,
  seismicSignature    = 0,  

  -- Weapons
  explodeAs           = "UNIT_EXPLOSION_MEDIUM1",  
  selfDestructAs      = "UNIT_SELFD_MEDIUM1", 
  noChaseCategory     = [[SUB PLANE HELICOPTER]],  

  weapons = {
    [1] = { def = "C_CANNON_TANK_VERY_HEAVY", },
    [2] = { def = "C_MACHINEGUN", mainDir = {  1, 1, 0 }, maxAngleDif = 180, },  --[[ 1 1 0]]
    [3] = { def = "C_MACHINEGUN", mainDir = { -1, 1, 0 }, maxAngleDif = 180, },  --[[-1 1 0]]
    --[4] = "C_MAMMOTHTANK_STOMP",
  },
  
  sfxtypes = {
    explosiongenerators = {
      --"custom:FLARE_CANNON_LIGHT",  --"custom:FLARE_CANNON_HEAVY",
    },
  },  

  customParams = {
    wreckModels = { "corgol_dead.3do", "corgol_dead.3do" },  --"c_mammothtank_wreck1.s3o", "c_mammothtank_wreck2.s3o"
    heapModels = { "3x3d.3do" },

	  soundCategory = "VEHICLE1",
  
	  armorThickness = 400,
	
	  lightDamageChance = 0.2,	
	  mediumDamageChance = 0.4,
	  heavyDamageChance = 0.4,

    collisionVolumes = {
      body   = { {55  , 16 , 66}, {0,  8, 0}, "box" },
      turret = { {21.5, 8.5, 46}, {0, 21, 5}, "box" },
    },
  },
},
}

return lowerkeys(unitDefs)